for dirname in Terrain* ; do
	echo "run " $dirname "..."
	cd $dirname
        execame="terrain_demo"${dirname:7}
        if [ $dirname = "TerrainWater" ];then
        	execame="terrain_water"
        fi
	./$execame
	cd ..
done

for dirname in tutorial*; do
	echo "run " $dirname "..."
	cd $dirname
	./$dirname
	cd ..
done

